package com.qili.service.ela;

import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.index.query.*;

import java.util.List;

/**
 * @author zhaoyongke
 * @date 2021/10/7
 * @description
 */
public interface ElasticSerachService {

    public SearchResponse searchMessage(BoolQueryBuilder boolQueryBuilder,String orderFiled,String  start,String size);
    public MatchPhraseQueryBuilder uniqueMatchQuery(String fieldKey, String fieldValue);
    public BoolQueryBuilder orMatchUnionWithList(String fieldKey, List<String> queryList);

    public RangeQueryBuilder rangeMathQuery(String fieldKey, String start, String end);
    public MatchQueryBuilder matchQueryBuilder(String fieldKey, String fieldValue);
    public QueryBuilder queryId(String fieldValue);
    public void deleteById(String iddelete);
}
